package com.ym.medical.service.impl;

import com.ym.core.utils.tkmybatis.BaseSVImpl;

import com.ym.medical.dao.NavDestYjDao;
import com.ym.medical.domain.entity.NavDestYjEntity;
import com.ym.medical.service.INavDestYjSV;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * ComputerName:LAPTOP-I6GKDIFQ
 * Author:admin
 * Date: 2019-06-17
 * Time: 09:23:25
 * 服务实现类
 */
@Service
@Transactional( rollbackFor = Exception.class)
public class NavDestYjSVImpl extends BaseSVImpl<NavDestYjEntity, NavDestYjDao> implements INavDestYjSV {
    @Override
    public int insertBatch(List<NavDestYjEntity> records){
        for(NavDestYjEntity navDestYj:records){
            mapper.insert(navDestYj);
        }
        return records.size();
    }
}
